﻿using System;
using System.Collections.Generic;

using System.Windows;
using System.Windows.Controls;

using System.Windows.Input;

namespace EagleJournal
{
	public partial class WindowSQLPassword : Window
	{
        public string password;

		public WindowSQLPassword()
		{
			this.InitializeComponent();
		}

        private void ButtonOK_Click(object sender, RoutedEventArgs e)
        {
            this.password = this.TextPassword.Password;

            DialogResult = true;
        }

        private void TextPassword_PasswordChanged(object sender, RoutedEventArgs e)
        {
            if (this.TextPassword.Password.Length > 0)
                this.ButtonOK.IsEnabled = true;
            else
                this.ButtonOK.IsEnabled = false;
        }
	}
}